﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace MessagingWPF.Infrastructure.Test
{
	[TestClass]
	public class TestableInterestCache : IMessageInterestCache
	{
		public ReadOnlyCollection<Type> GetReturnValue { get; set; }
		public bool ContainsReturnValue { get; set; }

		#region IMessageInterestCache Members

		public void Add(Type subscriberType, IEnumerable<Type> messageTypes)
		{
		}

		public bool Contains(Type subscriberType)
		{
			return ContainsReturnValue;
		}

		public ReadOnlyCollection<Type> Get(Type subscriberType)
		{
			return GetReturnValue;
		}

		#endregion
	}
}